import api from './index'
// axios
import request from '@/utils/request'


// 投票
export function getCompetiton(params) {
  return request({
    url: api.Competiton,
    method: 'get',
     hideloading: true
  })
}
// 投票詳情
export function getCompetitonDetails(params) {
  return request({
    url: api.CompetitonDetails,
    method: 'get',
    params,
    hideloading: true
  })
}
// 银行分类
export function getCompetitonBank(params) {
  return request({
    url: api.CompetitonBank,
    method: 'get',
    params,
    hideloading: true
  })
}

// 才艺分类
export function getCompetitonKind() {
  return request({
    url: api.CompetitonKind,
    method: 'get',
    hideloading: true
  })
}

// 选手列表
export function getCompetitonPlayer(params) {
  return request({
    url: api.CompetitonPlayer,
    method: 'get',
    params,
    hideloading: true
  })
}
// 排行榜
export function getCompetitonRank() {
  return request({
    url: api.CompetitonRank,
    method: 'get',
    hideloading: true
  })
}
// 排行榜详情
export function getBankDetails(params) {
  return request({
    url: api.BankDetails,
    method: 'get',
    params,
    hideloading: true
  })
}
// 选手详情

export function getCompetitorRead(params) {
  return request({
    url: api.CompetitorRead,
    method: 'get',
    params,
    hideloading: true
  })
}
//资讯列表

export function getArticleindex(params) {
  return request({
    url: api.Articleindex,
    method: 'get',
    params,
    hideloading: true
  })
}
//资讯详情
export function getArticleRead(params) {
  return request({
    url: api.ArticleRead,
    method: 'get',
    params,
    hideloading: true
  })
}
// 资讯推荐
export function getArticleBestlist(params) {
  return request({
    url: api.ArticleBestlist,
    method: 'get',
    params,
    hideloading: true
  })
}
/**
 * 给选手投票
 * @param params
 * @returns {*}
 */
export function Vote(params) {
  return request({
    url: api.Vote,
    method: 'post',
    data: params,
    hideloading: true
  })
}
